#include "stm32f10x.h"
#include "engine.h"
#include "delay.h"

int speed1=30; int flash1=10;int isMove=0;

void getMCmd(char* cmd,int len){
	if (cmd[2]=='n') isMove=0;
	else{
		if(cmd[2]=='w') isMove=1;
		else if(cmd[2]=='s') isMove=-1;
	}
}

